package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ProviderBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ProviderService extends BaseService<ProviderBean> {

	ProviderBean getProviderBeanById(String id) throws Exception;
	
	void removeProviderBeanById(String id) throws Exception;
	
	void removeProviderBeanByIds(String ids) throws Exception;
	
	ProviderBean saveProviderBean(ProviderBean crm) throws Exception;
	
	ProviderBean updateProviderBean(ProviderBean crm) throws Exception;
	
	Page<ProviderBean>  findProviderBeanByCond(ProviderBean bean,
			Page<ProviderBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveProviderBeanExt(String sql) throws Exception;

	String findProviderBeanExtCreate(String tableName) throws Exception;

	String findProviderBeanExtEdit(String tableName, String id)
			throws Exception;

	String findProviderBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasProviderBeanExtData(String tableName, String id)
			throws Exception;
}